import org.junit.Test;
import stephen.com.utils.MailUtil;

import javax.mail.MessagingException;
import java.io.UnsupportedEncodingException;

public class Demo1 {


    @Test
    public void method1() {
        System.out.println("Hello");
    }

    @Test
    public void method2(){
        String email="467198055@qq.com";
        try {
            MailUtil.send(email,"我是王荣生1号","祝你早日发大财！",MailUtil.UNICODE);
        } catch (MessagingException | UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }
}
